package version

import (
	mycmd "svntool/application/models/util/cmd"
	"strings"
)

type VersionCmd struct {
}



func (vc *VersionCmd) Git(cmd string) (string, error){
	return "", nil
} 

func (vc *VersionCmd) Svn(cmd string) (string, error){
	output, err := mycmd.ExecCmd("svn --version")
	if err == nil {
		output = strings.Split(output, "\n")[0]
	}

	return output, err
}